Repository navigation
fix(connections): restore socket authentication and preserve TCP TLS checks - #1563
Merged
Merged
Conversation
debba
marked this pull request as ready for review
November 16, 2026 09:06
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge The PR changes are small and focused. The PostgreSQL TLS connector now forces the Disable choice for local sockets, and TCP and tunnel connections still validate their TLS settings. The vendored Files Reviewed (83 files)
Reviewed by claude-sonnet-5.5 · Input: 254 · Output: 1.9K · Cached: 375.1K Review guidance: REVIEW.md from base branch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Switching PostgreSQL from TCP to a Unix socket could still load inactive TLS certificate files and fail before connecting. MySQL 8.4 socket connections using
caching_sha2_passwordalso failed with valid credentials: SQLx 0.8.6 sent an RSA key request even though MySQL treats a Unix socket as a secure transport and expects the password.Force the PostgreSQL TLS connector to match its SSL-disabled local socket configuration. Preserve TCP and tunnel TLS validation. Patch SQLx's full SHA-2 authentication to recognize the actual local socket transport, retaining RSA for unencrypted TCP and keeping TLS verification unchanged.
The SQLx change uses a local snapshot of sqlx-mysql 0.8.6 with the original licenses. Only three upstream source files differ (the transport flag, its propagation, and the authentication condition);
src-tauri/vendor/sqlx-mysql/README.tabularis.mddocuments the exact changes and removal criteria. Other SQLx crates and versions remain unchanged.Validation on
d391908e41a699fd907325e0b82ee6d98b585c13, based on main after #957, #1111, #1250, #1441 and #1520:detect_changeschecked the staged/compare scope. Vendor code is excluded from the graph; its three source-file differences were compared directly to the published 0.8.6 crate and reviewed manually.The UI verification used Chromium and the shared web backend/driver implementation. Native desktop/WebKit was not executed. Disposable database containers were stopped after testing. All CI checks are green on d391908, including the aggregate test job, PostgreSQL, MySQL 5.7/8.4 and web-e2e. Kilo Code Review reports no issues. GitHub reports CLEAN/MERGEABLE.
Manual verification with disposable PostgreSQL/MySQL databases:
SELECT 'probe' FROM pg_sleep(1)on PostgreSQL;SELECT 'probe' FROM DUAL WHERE SLEEP(1)=0on MySQL): outline shows Running, then Output available. Run invalid SQL, verify Failed, correct it and rerun, then clear outputs.The isolated Rust socket regressions are in
src-tauri/tests/socket_integration.rs(run with--ignoredandMYSQL_UNIX_SOCKET/PG_UNIX_SOCKET). Use only disposable databases: the MySQL test runsFLUSH PRIVILEGESto exercise cold authentication.